// 导入utils并执行
import "./utils/utils"
import "./utils/http"

App({
  onLaunch(){
    this.getToken()
  },
  getToken(){
      this.token = wx.getStorageSync('token')
  },
  // key='token'
  setToken(key,token){
    // 存储到本地存储
    wx.setStorageSync(key, token)
    // 存储到应用实例
    this[key] = token

  },

  globalData: {},
})
